import Home from "../pages/home"
import Login from "../pages/Login"
import Register from "../pages/Register"
import Search from "../pages/Search"
import Detail from "../pages/Detail"
export default [
    {path: "/Home", component: Home},
    {path: "/Login", component: Login,meta:{hideFooter:true}},
    {path: "/Register", component: Register,meta:{hideFooter:true}},
    {name:"Search",
    path:"/Search/:keyword?",
    component: Search,
     props:route =>({
        keyword:route.params.keyword,
        categoryName:route.query.categoryName,
        category1Id:route.query.category1Id,
        category2Id:route.query.category2Id,
        category3Id:route.query.category3Id
     })},
    {path:"/Detail/:skuid",component: Detail,props:true},
    {path: "/",redirect:"/Home"},
]